<nav class="mui-bar mui-bar-tab nav_tab">

@foreach(\App\Nav::getMenu('底部菜单') as $tab)

    @if($active==$tab['name'])
        @if($tab['type']==1)
            <a href="{{route('wap.post-index',['id'=>$tab['link']])}}" class="mui-tab-item1  mui-active">
        @elseif($tab['type']==2)
            <a href="{{route('wap.post-list',['slug'=>$tab['link']])}}" class="mui-tab-item1  mui-active">
        @elseif($tab['type']==3)
            <a href="{{$tab['link']}}" class="mui-tab-item1  mui-active">
        @endif
            <span class="mui-icon mui-sprite {{$tab['icon']}}"></span>
            <span class="mui-tab-label">{{$tab['name']}}</span>
        </a>
    @else
        @if($tab['type']==1)
            <a href="{{route('wap.post-index',['id'=>$tab['link']])}}" class="mui-tab-item1">
        @elseif($tab['type']==2)
            <a href="{{route('wap.post-list',['slug'=>$tab['link']])}}" class="mui-tab-item1 ">
        @elseif($tab['type']==3)
            <a href="{{$tab['link']}}" class="mui-tab-item1 ">
                @endif
            <span class="mui-icon mui-sprite {{$tab['icon']}}"></span>
            <span class="mui-tab-label">{{$tab['name']}}</span>
        </a>
    @endif
@endforeach
</nav>
